#pragma once
#include "ChatBaseDoc.h"
#include "UDPProxyServer.h"

// CChatServerProxyDoc document

class CChatServerProxyDoc 
	: public CChatBaseDoc
{
	RakNet::UDPProxyServer*	m_pUdpProxyServer;

	DECLARE_DYNCREATE(CChatServerProxyDoc)

public:
	CChatServerProxyDoc();
	virtual ~CChatServerProxyDoc();
	
	bool LoginToCoordinator(const RakNet::RakString& password, const SystemAddress& coordinatorAddress);

#ifndef _WIN32_WCE
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#endif
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual BOOL OnNewDocument();

	DECLARE_MESSAGE_MAP()
};
